function [PluginFiles PluginCount] = plugins_ReadFcn( dhaqtool_dir )
%PLUGINS_READFCN Summary of this function goes here
%   Detailed explanation goes here

% Find all PlugIns
PluginDirectories= dir([dhaqtool_dir filesep 'plugins']);
%Delete Information about the currrent and above dir
PluginDirectories= PluginDirectories(3:end);
PluginCount= length(PluginDirectories);
PluginFiles= cell(PluginCount, 1);

for i= 1:PluginCount
    Path=[dhaqtool_dir filesep 'plugins' filesep PluginDirectories(i).name];
    File= dir([Path filesep '*.ini']);
    if isempty(File)
        error('Plugin without ini file');
    end
    PluginFiles{i, 1}=[Path filesep File.name];
end

end

